package com.mxpio.erp.common.equipment.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.jpa.policy.impl.UUIDPolicy;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * 客商管理对象 EQUIPMENT_MERCHANTS
 * 
 * @author Cheng
 * @date 2023-06-26
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT_MERCHANTS")
@Schema(description="客商管理")
public class EquipmentMerchants extends BaseEntity {

private static final long serialVersionUID=1L;


    @Id
    @Generator(policy = UUIDPolicy.class)
    @Column(name = "ID_")
    @Schema(description = "主键")
    private String id;

    @Column(name = "NAME_")
    @Schema(description = "客商名称")
    private String name;

    @Column(name = "CODE_")
    @Schema(description = "客商编码")
    private String code;

    @Column(name = "TYPE_")
    @Schema(description = "类型")
    private String type;

    @Column(name = "DIRECTOR_")
    @Schema(description = "负责人")
    private String director;

    @Column(name = "DIRECTOR_MOBAILE_")
    @Schema(description = "负责人电话")
    private String directorMobaile;

    @Column(name = "TELEPHONE_")
    @Schema(description = "固话")
    private String telephone;

    @Column(name = "EMAIL_")
    @Schema(description = "邮箱")
    private String email;

    @Column(name = "IS_ENABLE_")
    @Schema(description = "是否启用")
    private String isEnable;

    @Column(name = "ADDRESS_")
    @Schema(description = "地址")
    private String address;

    @Column(name = "REMARKS_")
    @Schema(description = "备注")
    private String remarks;

    @Column(name = "TENANT_")
    @Schema(description = "租户")
    private String tenant;

    @Column(name = "IS_DEL_")
    @Schema(description = "是否删除（0-正常；1-删除）")
    private String isDel;

}
